import {
    Input,
    Select,
    Radio
} from 'antd'
import React from 'react'



export const formItem = {
    'input': {
        component: Input
    },
    'select': {
        component: Select,
        children: true
    },
    'radio': {
        component: Radio.Group,
        children: true
    }
}


export const columns = [
    {
      title: 'Name',
      dataIndex: 'name',
      key: 'name',
      render: text => <a>{text}</a>,
    },
    {
      title: 'Age',
      dataIndex: 'age',
      key: 'age',
    },
    {
      title: 'Address',
      dataIndex: 'address',
      key: 'address',
    },
    {
      title: 'Tags',
      key: 'tags',
      dataIndex: 'tags',
      render: tags => (
        <>
          {tags.map(tag => {
            let color = tag.length > 5 ? 'geekblue' : 'green';
            if (tag === 'loser') {
              color = 'volcano';
            }
            return (
              <span>动态操作</span>
            );
          })}
        </>
      ),
    },
    {
      title: 'Action',
      key: 'action',
      render: (text, record) => (
        <span>操作标签</span>
      ),
    },
  ];
  